package com.example.demo.model.form;

import com.example.demo.model.core.Update;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@Schema(description = "角色表单对象")
public class RoleForm implements Serializable {

    @NotEmpty(message = "id不能为空", groups = {Update.class})
    @Schema(description = "角色ID")
    private String id;
    @NotEmpty(message = "名称不能为空")
    @Schema(description = "角色名称")
    private String name;
    @NotEmpty(message = "编码不能为空")
    @Schema(description = "角色编码")
    private String code;
    @Schema(description = "角色描述")
    private String description;

//    private List<String> permissionIds;
}
